package com.hypo.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author hypo
 * @version 1.0
 * @since 2025/8/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_warehouse_area_local")
public class WarehouseAreaLocal {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //所属仓库ID
    @TableField(value = "warehouse_id")
    private Integer warehouseId;
    //所属库区ID
    @TableField(value = "warehouse_area_id")
    private Integer warehouseAreaId;
    //库区类型(字典数据)
    private String category;
    //库位编号
    @TableField(value = "local_code")
    private String localCode;
    //库位长度
    @TableField(value = "local_len")
    private Integer localLen;
    //库位宽度
    @TableField(value = "local_width")
    private Integer localWidth;
    //库位高度
    @TableField(value = "local_height")
    private Integer localHeight;
    //库位容积
    @TableField(value = "local_volume")
    private Integer localVolume;
    //库位承重
    @TableField(value = "local_bearing_capacity")
    private Integer localBearingCapacity;
    //巷道号
    @TableField(value = "tunnel_number")
    private String tunnelNumber;
    //货架号
    @TableField(value = "shelf_number")
    private String shelfNumber;
    //层号
    @TableField(value = "layer_number")
    private String layerNumber;
    //SaaS标识
    @TableField(value = "saas_id")
    private String saasId;
    //创建时间
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    //创建人账号
    @TableField(value = "create_by")
    private String createBy;
    //修改时间
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
    //修改人账号
    @TableField(value = "update_by")
    private String updateBy;
    //是否删除  1 未删除  2 已删除
    @TableField(value = "is_del")
    private Integer isDel;

    @TableField(exist = false)
    private String warehouseName;
    @TableField(exist = false)
    private String warehouseAreaName;
}
